import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import VuevideoPlayer from "vue-video-player";
import "video.js/dist/video-js.css";
import "element-ui/lib/theme-chalk/index.css";
import "@/assets/style/common.less";
import directive from "./utils/directive"; // directive
import modal from "@/utils/directive/modal.js";
Vue.config.productionTip = false;
import "@/assets/style/reset.less";
import "element-ui/lib/theme-chalk/index.css";
import Pagination from "@/components/Pagination";
import 'vant/lib/index.css'
Vue.component("Pagination", Pagination);
Vue.use(directive);
Vue.use(ElementUI);
Vue.use(VuevideoPlayer);
Vue.prototype.$eventBus = new Vue()
Vue.prototype.$modal = modal;
import {Col, Row, Search, DropdownMenu, DropdownItem, Sticky, List, Popup, Button, Form, Field, RadioGroup, Radio, DatetimePicker, Area, Picker, Cascader, Checkbox, CheckboxGroup, Icon, Uploader, Cell, CellGroup, Swipe, SwipeItem, Notify, Calendar, TreeSelect } from 'vant';

Vue.use(Col);
Vue.use(Row);
Vue.use(Notify);
Vue.use(Calendar);
Vue.use(Search);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Sticky);
Vue.use(List);
Vue.use(Popup);
Vue.use(Button);
Vue.use(Form);
Vue.use(Field);
Vue.use(RadioGroup);
Vue.use(Radio);
Vue.use(DatetimePicker);
Vue.use(Area);
Vue.use(Picker);
Vue.use(Cascader);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Icon);
Vue.use(Uploader);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(TreeSelect);

export default new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
export { router };